package com.zyong.design.pattern.state.case3;

/**
 * 订单生成
 * @program: zyong-design-pattern
 * @ClassName: GenerateState
 * @author: zyong
 * @create: 2024-03-24 22:09
 */
public class GenerateState extends AbstractState {
    @Override
    public void checkEvent(Context context) {
        context.setState(new ReviewState());
    }

    @Override
    public void checkFailEvent(Context context) {
        context.setState(new FeedBackState());
    }

    @Override
    public String getCurrentState() {
        return StateEnum.GENERATED.getValue();
    }
}
